/**
 * Created by chendong on 2017/7/18.
 */
import Login from './components/login.vue'
import Home from './components/home.vue'
import Dashboard from './components/dashboard.vue'
import Index from './components/common/index.vue'
import refresh from './components/refresh.vue'

import traineeSearch from './components/trainee/search.vue'
import traineeDetail from './components/trainee/detail.vue'
import traineeAdd from './components/trainee/add.vue'
import traineeList from './components/trainee/list.vue'
import traineeIntention from './components/trainee/intention.vue'
import courseAdd from './components/course/add.vue'
import courseList from './components/course/list.vue'
import courseDetail from './components/course/detail.vue'
import calendar from './components/course/calendar.vue'
import trainingList from './components/training/list.vue'
import trainingAdd from './components/training/add.vue'
import trainingEdit from './components/training/edit.vue'
import customerAdd from './components/customer/add.vue'
import customerSearch from './components/customer/search.vue'
import customerList from './components/customer/list.vue'
import customerDetail from './components/customer/detail.vue'
import customerIntention from './components/customer/intention.vue'
import hotel from './components/operate/supplier/hotel.vue'
import hotelDetail from './components/operate/supplier/hotelDetail.vue'
import other from './components/operate/supplier/other.vue'
import otherDetail from './components/operate/supplier/otherDetail.vue'
import employee from './components/operate/manpower/employee.vue'
import employeeList from './components/operate/manpower/list.vue'
import employeeDetail from './components/operate/manpower/listDetail.vue'
import recruit from './components/operate/manpower/recruit.vue'
import recruitDetail from './components/operate/manpower/recruitDetail.vue'
import timeSheet from './components/operate/manpower/timeSheet.vue'
import courseMoney from './components/operate/manpower/courseMoney'
import house from './components/operate/assets/house.vue'
import houseDetail from './components/operate/assets/houseDetail.vue'
import office from './components/operate/assets/office.vue'
import officeDetail from './components/operate/assets/officeDetail.vue'
import transport from './components/operate/assets/transport.vue'
import transportDetail from './components/operate/assets/transportDetail.vue'
import assetsOther from './components/operate/assets/other.vue'
import classroom from './components/operate/assets/facilities/classroom.vue'
import classroomDetail from './components/operate/assets/facilities/classroomDetail.vue'
import simulator from './components/operate/assets/facilities/simulator.vue'
import simulatorDetail from './components/operate/assets/facilities/simulatorDetail.vue'

import wxPayRecord from './components/operate/finance/wxPayRecord'

import questionList from './components/question/list.vue'
import questionAdd from './components/question/add.vue'
import questionDetail from './components/question/detail.vue'
import questionSearch from './components/question/search.vue'

import book from './components/operate/assets/facilities/book.vue'
import bookDetail from './components/operate/assets/facilities/bookDetail.vue'
import textbook from './components/operate/assets/facilities/textbook.vue'
import textbookDetail from './components/operate/assets/facilities/textbookDetail.vue'
import addProject from './components/training/addProject.vue'
import projectDetail from './components/training/projectDetail.vue'
import trainingListDetail from './components/training/listDetail.vue'

import userList from './components/system/user.vue'
import groupList from './components/system/group.vue'
import WeChatPay from './components/system/WeChatPay.vue'
import webHome from './components/system/webHome.vue'
import webAbout from './components/system/webAbout.vue'
import webNews from './components/system/webNews.vue'
import webContact from './components/system/webContact.vue'

import traineeCount from './components/dashboard/trainee/traineeCount.vue'
import traineeCountDetail from './components/dashboard/trainee/traineeCountDetail.vue'
import traineeLocation from './components/dashboard/trainee/traineeLocation.vue'
import traineeLocationDetail from './components/dashboard/trainee/traineeLocationDetail.vue'
import traineeAge from './components/dashboard/trainee/traineeAge.vue'
import traineeAgeDetail from './components/dashboard/trainee/traineeAgeDetail.vue'
import traineeZhiwu from './components/dashboard/trainee/traineeZhiwu.vue'
import traineeZhiwuDetail from './components/dashboard/trainee/traineeZhiwuDetail.vue'
import traineeAgework from './components/dashboard/trainee/traineeAgework.vue'
import traineeAgeworkDetail from './components/dashboard/trainee/traineeAgeworkDetail.vue'
import traineeEducation from './components/dashboard/trainee/traineeEducation.vue'
import traineeEducationDetail from './components/dashboard/trainee/traineeEducationDetail.vue'
import traineeCrewtype from './components/dashboard/trainee/traineeCrewtype.vue'
import traineeCrewtypeDetail from './components/dashboard/trainee/traineeCrewtypeDetail.vue'
import traineeSelf from './components/dashboard/trainee/traineeSelf.vue'
import traineeSelfDetail from './components/dashboard/trainee/traineeSelfDetail.vue'
import traineeCourse from './components/dashboard/trainee/traineeCourse.vue'
import traineeCourseDetail from './components/dashboard/trainee/traineeCourseDetail.vue'
import traineeFeedback from './components/dashboard/trainee/traineeFeedback.vue'
import traineeFeedbackDetail from './components/dashboard/trainee/traineeFeedbackDetail.vue'

import recommendList from './components/dashboard/customer/recommendList.vue'
import customerPay from './components/dashboard/customer/customerPay.vue'
import customerPayDetail from './components/dashboard/customer/customerPayDetail.vue'
import customerTraining from './components/dashboard/customer/customerTraining.vue'
import customerTrainingDetail from './components/dashboard/customer/customerTrainingDetail.vue'
import customerTrainee from './components/dashboard/customer/customerTrainee.vue'
import customerTraineeDetail from './components/dashboard/customer/customerTraineeDetail.vue'
import customerNew from './components/dashboard/customer/customerNew.vue'
import customerNewDetail from './components/dashboard/customer/customerNewDetail.vue'
import customerChuandong from './components/dashboard/customer/customerChuandong.vue'
import customerChuandongDetail from './components/dashboard/customer/customerChuandongDetail.vue'
import customerDaili from './components/dashboard/customer/customerDaili.vue'
import customerDailiDetail from './components/dashboard/customer/customerDailiDetail.vue'
import customerLocation from './components/dashboard/customer/customerLocation.vue'
import customerLocationDetail from './components/dashboard/customer/customerLocationDetail.vue'
import customerCrewtype from './components/dashboard/customer/customerCrewtype.vue'
import customerCrewtypeDetail from './components/dashboard/customer/customerCrewtypeDetail.vue'
import customerCourse from './components/dashboard/customer/customerCourse.vue'
import customerCourseDetail from './components/dashboard/customer/customerCourseDetail.vue'
import customerFeedback from './components/dashboard/customer/customerFeedback.vue'
import customerFeedbackDetail from './components/dashboard/customer/customerFeedbackDetail.vue'
import customerBaifang from './components/dashboard/customer/customerBaifang.vue'
import customerBaifangDetail from './components/dashboard/customer/customerBaifangDetail.vue'
import customerActivity from './components/dashboard/customer/customerActivity.vue'
import customerActivityDetail from './components/dashboard/customer/customerActivityDetail.vue'

import courseCost from './components/dashboard/course/courseCost.vue'
import courseCostDetail from './components/dashboard/course/courseCostDetail.vue'
import courseReturn from './components/dashboard/course/courseReturn.vue'
import courseReturnDetail from './components/dashboard/course/courseReturnDetail.vue'
import courseIncome from './components/dashboard/course/courseIncome.vue'
import courseIncomeDetail from './components/dashboard/course/courseIncomeDetail.vue'
import studentPay from './components/dashboard/course/studentPay.vue'
import courseCertificate from './components/dashboard/course/courseCertificate.vue'
import courseCertificateDetail from './components/dashboard/course/courseCertificateDetail.vue'
import courseSimulator from './components/dashboard/course/courseSimulator.vue'
import courseSimulatorDetail from './components/dashboard/course/courseSimulatorDetail.vue'
import courseTypeIncome from './components/dashboard/course/courseTypeIncome.vue'
import courseTypeIncomeDetail from './components/dashboard/course/courseTypeIncomeDetail.vue'

import classroomIncome from './components/dashboard/facility/classroomIncome.vue'
import classroomIncomeDetail from './components/dashboard/facility/classroomIncomeDetail.vue'
import classroomVacancy from './components/dashboard/facility/classroomVacancy.vue'
import classroomVacancyDetail from './components/dashboard/facility/classroomVacancyDetail.vue'
import simulatorVacancy from './components/dashboard/facility/simulatorVacancy.vue'
import simulatorVacancyDetail from './components/dashboard/facility/simulatorVacancyDetail.vue'
import trainerVacancy from './components/dashboard/trainer/trainerVacancy.vue'
import trainerVacancyDetail from './components/dashboard/trainer/trainerVacancyDetail.vue'

import trainerHour from './components/dashboard/trainer/trainerHour.vue'
import trainerHourDetail from './components/dashboard/trainer/trainerHourDetail.vue'
import trainerCourseNum from './components/dashboard/trainer/trainerCourseNum.vue'
import trainerCourseNumDetail from './components/dashboard/trainer/trainerCourseNumDetail.vue'
import trainerTraining from './components/dashboard/trainer/trainerTraining.vue'
import trainerTrainingDetail from './components/dashboard/trainer/trainerTrainingDetail.vue'

import supplier from './components/dashboard/operation/supplier.vue'
import supplierDetail from './components/dashboard/operation/supplierDetail.vue'

import homepage from './components/primary/homepage.vue'
import individual from './components/primary/individual.vue'
import information from './components/primary/information.vue'

import studentSreach from './components/common/studentSreach.vue'
import courseSearch from './components/common/courseSearch.vue'

const routes = [{
    path: '/',
    component: Home,
    children: [{
        path: '/',
        component: homepage
    },]
},
{
    path: '/login',
    component: Login,
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'refresh',
        component: refresh,
        name: 'refresh'
    }]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'trainee/detail/:id',
        component: traineeDetail,
        name: 'traineeDetail'
    },
    {
        path: 'trainee/search',
        component: traineeSearch,
        name: 'traineeSearch'
    },
    {
        path: 'trainee/add',
        component: traineeAdd,
        name: 'traineeAdd'
    },
    {
        path: 'trainee/list',
        component: traineeList,
        name: 'traineeList',
    },
    {
        path: 'trainee/intention',
        component: traineeIntention,
    },
    ]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'customer/add',
        component: customerAdd,
        name: 'customerAdd'
    },
    {
        path: 'customer/search',
        component: customerSearch,
        name: 'customerSearch'
    },
    {
        path: 'customer/list',
        component: customerList,
        name: 'customerList',
    },
    {
        path: 'customer/detail/:id',
        component: customerDetail,
        name: 'customerDetail'
    }, {
        path: 'customer/customerIntention',
        component: customerIntention,

    }]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'training/list',
        component: trainingList,
    }, {
        path: 'training/addProject',
        component: addProject
    }, {
        path: 'training/projectDetail/:id',
        component: projectDetail
    }, {
        path: 'training/add',
        component: trainingAdd
    }, {
        path: 'training/listDetail/:id',
        component: trainingListDetail
    }, {
        path: 'training/edit/:id',
        component: trainingEdit
    },]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'operate/supplier/hotel',
        // component: hotel,
        component: resolve => require(hotel, resolve)
    },
    {
        path: 'operate/supplier/hotelDetail/:id',
        // component: hotelDetail
        component: resolve => require(hotelDetail, resolve)
    },
    {
        path: 'operate/supplier/other',
        // component: other,
        component: resolve => require(other, resolve)
    },
    {
        path: 'operate/supplier/otherDetail/:id',
        // component: otherDetail
        component: resolve => require(otherDetail, resolve)
    },
    {
        path: 'operate/manpower/employee',
        // component: employee
        component: resolve => require(employee, resolve)
    },
    {
        path: 'operate/manpower/list',
        // component: employeeList,
        component: resolve => require(employeeList, resolve)
    },
    {
        path: 'operate/manpower/listDetail/:id',
        // component: employeeDetail
        component: resolve => require(employeeDetail, resolve)
    },
    {
        path: 'operate/manpower/recruit',
        // component: recruit,
        component: resolve => require(recruit, resolve)
    },
    {
        path: 'operate/manpower/recruitDetail/:id',
        // component: recruitDetail
        component: resolve => require(recruitDetail, resolve)
    },
    {
        path: 'operate/manpower/timeSheet',
        // component: timeSheet
        component: resolve => require(timeSheet, resolve)
    },
    {
        path: 'operate/manpower/courseMoney',
        // component: courseMoney
        component: resolve => require(courseMoney, resolve)
    },
    {
        path: 'operate/assets/house',
        // component: house,
        component: resolve => require(house, resolve)
    },
    {
        path: 'operate/assets/houseDetail/:id',
        // component: houseDetail
        component: resolve => require(houseDetail, resolve)
    },
    {
        path: 'operate/assets/office',
        // component: office,
        component: resolve => require(office, resolve)
    },
    {
        path: 'operate/assets/officeDetail/:id',
        // component: officeDetail
        component: resolve => require(officeDetail, resolve)
    },
    {
        path: 'operate/assets/transport',
        // component: transport,
        component: resolve => require(transport, resolve)
    },
    {
        path: 'operate/assets/transportDetail/:id',
        // component: transportDetail
        component: resolve => require(transportDetail, resolve)
    },
    {
        path: 'operate/assets/other',
        // component: assetsOther,
        component: resolve => require(assetsOther, resolve)
    },
    {
        path: 'operate/assets/facilities/classroom',
        // component: classroom,
        component: resolve => require(classroom, resolve)
    },
    {
        path: 'operate/assets/facilities/classroomDetail/:id',
        // component: classroomDetail
        component: resolve => require(classroomDetail, resolve)
    },
    {
        path: 'operate/assets/facilities/simulator',
        // component: simulator,
        component: resolve => require(simulator, resolve)
    },
    {
        path: 'operate/assets/facilities/simulatorDetail/:id',
        // component: simulatorDetail
        component: resolve => require(simulatorDetail, resolve)
    },
    {
        path: 'operate/assets/facilities/book',
        // component: book,
        component: resolve => require(book, resolve)
    },
    {
        path: 'operate/assets/facilities/bookDetail/:id',
        // component: bookDetail
        component: resolve => require(bookDetail, resolve)
    },
    {
        path: 'operate/assets/facilities/textbook',
        // component: textbook,
        component: resolve => require(textbook, resolve)
    },
    {
        path: 'operate/assets/facilities/textbookDetail/:id',
        // component: textbookDetail
        component: resolve => require(textbookDetail, resolve)
    },
    {
        path: 'operate/finance/wxPayRecord',
        // component: wxPayRecord,
        component: resolve => require(wxPayRecord, resolve)
    },
    ]


},
{
    path: '/',
    component: Home,
    children: [{
        path: 'course/add',
        component: courseAdd,
        name: 'courseAdd'
    },
    {
        path: 'course/list',
        component: courseList,
        name: 'courseList',
        meta: { 
            keepAlive: true
        }
    },
    {
        path: 'course/detail/:id',
        component: courseDetail,
        name: 'courseDetail'
    },
    {
        path: 'course/calendar',
        component: calendar,
        name: 'calendar',
    },
    ]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'question/add',
        component: questionAdd,
        name: 'questionAdd'
    },
    {
        path: 'question/search',
        component: questionSearch,
        name: 'questionSearch'
    },
    {
        path: 'question/list',
        component: questionList,
        name: 'questionList',
    },
    {
        path: 'question/detail/:id',
        component: questionDetail,
        name: 'questionDetail'
    },
    ]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'system/user',
        // component: userList,
        name: 'userList',
        component: resolve => require(userList, resolve)
    }, {
        path: 'system/group',
        // component: groupList,
        name: 'groupList',
        component: resolve => require(groupList, resolve)
    }, {
        path: 'system/WeChatPay',
        // component: WeChatPay,
        name: 'WeChatPay',
        component: resolve => require(WeChatPay, resolve)
    }, {
        path: 'system/webHome',
        // component: webHome,
        name: 'webHome',
        component: resolve => require(webHome, resolve)
    }, {
        path: 'system/webAbout',
        // component: webAbout,
        name: 'webAbout',
        component: resolve => require(webAbout, resolve)
    }, {
        path: 'system/webNews',
        // component: webNews,
        name: 'webNews',
        component: resolve => require(webNews, resolve)
    }, {
        path: 'system/webContact',
        // component: webContact,
        name: 'webContact',
        component: resolve => require(webContact, resolve)
    }]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/traineeCount',
        // component: traineeCount,
        component: resolve => require(traineeCount, resolve)
    },
    {
        path: 'dashboard/traineeCountDetail/:id',
        // component: traineeCountDetail
        component: resolve => require(traineeCountDetail, resolve)
    }, {
        path: 'dashboard/traineeLocation',
        // component: traineeLocation
        component: resolve => require(traineeCountDetail, resolve)
    },
    {
        path: 'dashboard/traineeLocationDetail/:id',
        // component: traineeLocationDetail
        component: resolve => require(traineeLocationDetail, resolve)
    }, {
        path: 'dashboard/traineeAge',
        // component: traineeAge
        component: resolve => require(traineeAge, resolve)
    },
    {
        path: 'dashboard/traineeAgeDetail/:id',
        // component: traineeAgeDetail
        component: resolve => require(traineeAgeDetail, resolve)
    }, {
        path: 'dashboard/traineeZhiwu',
        // component: traineeZhiwu
        component: resolve => require(traineeZhiwu, resolve)
    },
    {
        path: 'dashboard/traineeZhiwuDetail/:id',
        // component: traineeZhiwuDetail
        component: resolve => require(traineeZhiwuDetail, resolve)
    }, {
        path: 'dashboard/traineeAgework',
        // component: traineeAgework
        component: resolve => require(traineeAgework, resolve)
    },
    {
        path: 'dashboard/traineeAgeworkDetail/:id',
        // component: traineeAgeworkDetail
        component: resolve => require(traineeAgeworkDetail, resolve)
    }, {
        path: 'dashboard/traineeEducation',
        // component: traineeEducation
        component: resolve => require(traineeEducation, resolve)
    },
    {
        path: 'dashboard/traineeEducationDetail/:id',
        // component: traineeEducationDetail
        component: resolve => require(traineeEducationDetail, resolve)
    }, {
        path: 'dashboard/traineeCrewtype',
        // component: traineeCrewtype
        component: resolve => require(traineeCrewtype, resolve)
    },
    {
        path: 'dashboard/traineeCrewtypeDetail/:id',
        // component: traineeCrewtypeDetail
        component: resolve => require(traineeCrewtypeDetail, resolve)
    }, {
        path: 'dashboard/traineeSelf',
        // component: traineeSelf
        component: resolve => require(traineeSelf, resolve)
    },
    {
        path: 'dashboard/traineeSelfDetail/:id',
        // component: traineeSelfDetail
        component: resolve => require(traineeSelfDetail, resolve)
    }, {
        path: 'dashboard/traineeCourse',
        // component: traineeCourse
        component: resolve => require(traineeCourse, resolve)
    },
    {
        path: 'dashboard/traineeCourseDetail/:id',
        // component: traineeCourseDetail
        component: resolve => require(traineeCourseDetail, resolve)
    }, {
        path: 'dashboard/traineeFeedback',
        // component: traineeFeedback
        component: resolve => require(traineeFeedback, resolve)
    },
    {
        path: 'dashboard/traineeFeedbackDetail/:course/:id',
        // component: traineeFeedbackDetail
        component: resolve => require(traineeFeedbackDetail, resolve)
    },]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/customer/recommendList/:id/:num',
        // component: recommendList,
        component: resolve => require(recommendList, resolve)
    }, {
        path: 'dashboard/customerPay',
        // component: customerPay
        component: resolve => require(customerPay, resolve)
    },
    {
        path: 'dashboard/customerPayDetail/:id',
        // component: customerPayDetail
        component: resolve => require(customerPayDetail, resolve)
    }, {
        path: 'dashboard/customerTraining',
        // component: customerTraining
        component: resolve => require(customerTraining, resolve)
    },
    {
        path: 'dashboard/customerTrainingDetail/:id',
        // component: customerTrainingDetail
        component: resolve => require(customerTrainingDetail, resolve)
    }, {
        path: 'dashboard/customerTrainee',
        // component: customerTrainee
        component: resolve => require(customerTrainee, resolve)
    },
    {
        path: 'dashboard/customerTraineeDetail/:customer/:id',
        // component: customerTraineeDetail
        component: resolve => require(customerTraineeDetail, resolve)
    }, {
        path: 'dashboard/customerNew',
        // component: customerNew
        component: resolve => require(customerNew, resolve)
    },
    {
        path: 'dashboard/customerNewDetail/:id',
        // component: customerNewDetail
        component: resolve => require(customerNewDetail, resolve)
    }, {
        path: 'dashboard/customerChuandong',
        // component: customerChuandong
        component: resolve => require(customerChuandong, resolve)
    },
    {
        path: 'dashboard/customerChuandongDetail/:id',
        // component: customerChuandongDetail
        component: resolve => require(customerChuandongDetail, resolve)
    }, {
        path: 'dashboard/customerDaili',
        // component: customerDaili
        component: resolve => require(customerDaili, resolve)
    },
    {
        path: 'dashboard/customerDailiDetail/:id',
        // component: customerDailiDetail
        component: resolve => require(customerDailiDetail, resolve)
    }, {
        path: 'dashboard/customerLocation',
        // component: customerLocation
        component: resolve => require(customerLocation, resolve)
    },
    {
        path: 'dashboard/customerLocationDetail/:id',
        // component: customerLocationDetail
        component: resolve => require(customerLocationDetail, resolve)
    }, {
        path: 'dashboard/customerCrewtype',
        // component: customerCrewtype
        component: resolve => require(customerCrewtype, resolve)
    },
    {
        path: 'dashboard/customerCrewtypeDetail/:id',
        // component: customerCrewtypeDetail
        component: resolve => require(customerCrewtypeDetail, resolve)
    }, {
        path: 'dashboard/customerCourse',
        // component: customerCourse
        component: resolve => require(customerCourse, resolve)
    },
    {
        path: 'dashboard/customerCourseDetail/:id',
        // component: customerCourseDetail
        component: resolve => require(customerCourseDetail, resolve)
    }, {
        path: 'dashboard/customerFeedback',
        // component: customerFeedback
        component: resolve => require(customerFeedback, resolve)
    },
    {
        path: 'dashboard/customerFeedbackDetail/:course/:id',
        // component: customerFeedbackDetail
        component: resolve => require(customerFeedbackDetail, resolve)
    }, {
        path: 'dashboard/customerBaifang',
        // component: customerBaifang
        component: resolve => require(customerBaifang, resolve)
    },
    {
        path: 'dashboard/customerBaifangDetail/:id',
        // component: customerBaifangDetail
        component: resolve => require(customerBaifangDetail, resolve)
    }, {
        path: 'dashboard/customerActivity',
        // component: customerActivity
        component: resolve => require(customerActivity, resolve)
    },
    {
        path: 'dashboard/customerActivityDetail/:id',
        // component: customerActivityDetail
        component: resolve => require(customerActivityDetail, resolve)
    },]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/courseIncome',
        // component: courseIncome
        component: resolve => require(courseIncome, resolve)
    },
    {
        path: 'dashboard/courseIncomeDetail/:id',
        // component: courseIncomeDetail
        component: resolve => require(courseIncomeDetail, resolve)
    },
    {
        path: 'dashboard/studentPay/:id',
        // component: studentPay
        component: resolve => require(studentPay, resolve)
    },
    {
        path: 'dashboard/courseCertificate',
        // component: courseCertificate
        component: resolve => require(courseCertificate, resolve)
    },
    {
        path: 'dashboard/courseCertificateDetail/:date',
        // component: courseCertificateDetail
        component: resolve => require(courseCertificateDetail, resolve)
    },
    {
        path: 'dashboard/courseSimulator',
        // component: courseSimulator
        component: resolve => require(courseSimulator, resolve)
    },
    {
        path: 'dashboard/courseSimulatorDetail/:id',
        // component: courseSimulatorDetail
        component: resolve => require(courseSimulatorDetail, resolve)
    },
    {
        path: 'dashboard/courseTypeIncome',
        // component: courseTypeIncome
        component: resolve => require(courseTypeIncome, resolve)
    },
    {
        path: 'dashboard/courseTypeIncomeDetail/:id',
        // component: courseTypeIncomeDetail
        component: resolve => require(courseTypeIncomeDetail, resolve)
    },{
        path: 'dashboard/courseCost',
        // component: courseCost
        component: resolve => require(courseCost, resolve)
      },{
        path: 'dashboard/courseCostDetail/:id',
        // component: courseCostDetail
        component: resolve => require(courseCostDetail, resolve)
      },{
        path: 'dashboard/courseReturn',
        // component: courseReturn
        component: resolve => require(courseReturn, resolve)
      },{
        path: 'dashboard/courseReturnDetail/:id',
        // component: courseReturnDetail
        component: resolve => require(courseReturnDetail, resolve)
      },]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/classroomIncome',
        // component: classroomIncome
        component: resolve => require(classroomIncome, resolve)
    },
    {
        path: 'dashboard/classroomIncomeDetail/:id',
        // component: classroomIncomeDetail
        component: resolve => require(classroomIncomeDetail, resolve)
    },{
        path: 'dashboard/classroomVacancy',
        // component: classroomVacancy
        component: resolve => require(classroomVacancy, resolve)
      },{
        path: 'dashboard/classroomVacancyDetail/:id',
        // component: classroomVacancyDetail
        component: resolve => require(classroomVacancyDetail, resolve)
      },{
        path: 'dashboard/simulatorVacancy',
        // component: simulatorVacancy
        component: resolve => require(simulatorVacancy, resolve)
      },{
        path: 'dashboard/simulatorVacancyDetail/:id',
        // component: simulatorVacancyDetail
        component: resolve => require(simulatorVacancyDetail, resolve)
      },]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/trainerHour',
        // component: trainerHour
        component: resolve => require(trainerHour, resolve)
    },
    {
        path: 'dashboard/trainerHourDetail/:id',
        // component: trainerHourDetail
        component: resolve => require(trainerHourDetail, resolve)
    },{
        path: 'dashboard/trainerCourseNum',
        // component: trainerCourseNum
        component: resolve => require(trainerCourseNum, resolve)
    },
    {
        path: 'dashboard/trainerCourseNumDetail/:id/:num',
        // component: trainerCourseNumDetail
        component: resolve => require(trainerCourseNumDetail, resolve)
    },{
        path: 'dashboard/trainerTraining',
        // component: trainerTraining
        component: resolve => require(trainerTraining, resolve)
    },
    {
        path: 'dashboard/trainerTrainingDetail/:num',
        // component: trainerTrainingDetail
        component: resolve => require(trainerTrainingDetail, resolve)
    },{
        path: 'dashboard/trainerVacancy',
        // component: trainerVacancy
        component: resolve => require(trainerVacancy, resolve)
      },{
        path: 'dashboard/trainerVacancyDetail/:id',
        // component: trainerVacancyDetail
        component: resolve => require(trainerVacancyDetail, resolve)
      }]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/supplier',
        // component: supplier
        component: resolve => require(supplier, resolve)
    },{
        path: 'dashboard/supplierDetail/:id',
        // component: supplierDetail
        component: resolve => require(supplierDetail, resolve)
    }]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'primary/homepage',
        component: homepage
        
    }, {
        path: 'primary/individual',
        component: individual
    }, {
        path: 'primary/information',
        component: information
    }]
}, {
    path: '/',
    component: Home,
    children: [{
        path: 'studentSearch',
        // component: studentSreach,
        name: 'studentSreach',
        component: resolve => require(studentSreach, resolve)
    }, {
        path: 'courseSearch',
        // component: courseSearch,
        name: 'courseSearch',
        component: resolve => require(courseSearch, resolve)
    }]
},
];
export default routes
